<?php 
include("common/header.html");
include("common/left.html");
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--<script type="text/javascript">
$(function(){
	$("#addphoto").on("click",function(){
		$("textarea").before('<span style="margin-left:10px;"></span><input type="file" name="photo[]"/><br>'); 
	})
})
</script>
 <form action="addblog.php" method="post" name="form" enctype="multipart/form-data">
游记名称&nbsp;<input type="txt" name="topic" value="" /><br>
游玩时间&nbsp;<input type="txt" name="playtime" value="" /><br>
<span style="margin-left:10px;"></span><input type="file" name="photo[]"/><br>
游记正文&nbsp;<textarea name="text" style=" height:20%;"></textarea>
<input  type="submit" name="action" value="发布"/>
<input  type="submit" name="action" value="保存"/>
</form>
<button id="addphoto">添加图片</button> -->
<link rel="stylesheet" href="http://www.12301.cc/css/page.css" media="all">
<script type="text/javascript" charset="utf-8" src="http://yd.12301.cc/ue_126/ueditor_config_mini.js"></script>
<!-- 核心文件 -->
<script type="text/javascript" src="http://yd.12301.cc/ue_126/ueditor.all.min.js"></script>
<div class="r_content" id="bind_tao">
    <h3 class="mc_title">
        <span class="mctit_1"><span class="mctit_2">管理员发布游记</span></span>
    </h3>
	<div class="qunaertong">
		<form action="addblog.php" method="post" name="form" enctype="multipart/form-data">
			<p>
				<b class="tit">游记名称:</b>
				<span class="con1"><input type="text" class="inpcon" value="" id="ch_ops" name="topic"/></span>
				
			</p>
			<p>
				<b class="tit">游玩时间:</b>
				<span class="con1"><input type="text" class="inpcon" value="" id="ch_ops" name="playtime"/></span>
			</p>
			
			<!--<p>
				<b class="tit">添加图片:</b>
				<span class="con1"><input type="file"  value="" id="ch_ops" name="photo[]"/></span>
			</p>-->
			<p>
				<b class="tit">游记正文:</b>
				<span class="con1"><textarea id="detailInfo" name="text" data-required="2" title="请输入" ></textarea></span>
			</p>
			<p>
				<input type="submit" class="ok" name="action" id="save" value="发布" />
				<input type="submit" class="ok" name="action" id="save" value="保存" />
			</p>
		</form>
	</div> 
</div>
	<script type="text/javascript">	
			$(document).ready(function () {
				var ue = UE.getEditor('detailInfo');
				
				/*$("#save").click(function(){
					var txt_content = ue.getContent();	
					$("#detailInfo").val(txt_content);
					$("form").submit();
				});	*/
			});
	
	// window.onload=function(){
    // var save=document.getElementById('save');
    // save.onclick=function(){
        // mobile = $(".mobile").val();
         // if(mobile==''){
            // alert('请填写手机号');
             // return false;
         // }
        // $.post('../../register.php',{action:'sendCode',mobile:mobile},'','json').done(function(json_res){
            // if(json_res.cpde==100) {
                // save.disabled = true;
                 // timer = setInterval(function(){
                    // if(times==1){
                       // save.value = '发送验证码';
                       // save.disabled = false;
                         // clearInterval(timer);
                         // times = 60;
                    // }else{
                         // times--;
                         // save.value = times + '秒后重试';
                     // }
                 // },1000);
            // }else {
                // alert(json_res.msg);
            // }
        // });
    // }
	// $("#register").click(function(){
         // mobile = $(".mobile").val();
         // valiCode = $(".valiCode").val();
         // if(mobile==''){
             // alert('请填写手机号');
            // return false;
        // }
         // $.post('../../register.php',{action:'register',mobile:mobile,valiCode:valiCode},'','json').done(function(json_res){
            // if(json_res.cpde==100) {
                 // alert(json_res.msg);
                 // window.reload();
             // }else {
                 // alert(json_res.msg);
             // }
        // });
     // });
// };
</script>

<?include("common/footer.html")?>